package com.colabo.j2ee.web.core.vo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;

/**
 * 用于整个系统中Session周期范围内的数据存放，在spring配置文件中必须配置的<br>
 * 但一旦使用了JUnit后台测试，由于不存在Session环境，会造成初始化环境错误，此时，需要把Scope属性去掉<br>
 */
public class SessionUserHolder implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String BEAN_ID = "sessionUserHolder";
	private Locale locale;
	private Map bizMap = new HashMap();
	private String userauthky;
	private String positionId;
	private List   positionList;
	private List   roleList;
	private List   authOrgList;
	private String positionName;
	private String loginId;
	private String userName;
	private String unitId;
	private String passwd;
	private String unitName;
	private String ownerUnitId;
	private String ownerUnitName;
	private String hrId;
	private String portalId;
	private String notesId;
	private String issyn;
	private Integer failedLoginCount;
	private Integer maxFailedLoginCount;
	private String passwdExpireTime;
	private Integer passwdExpireDays;
	private String accountExpireTime;
	private String loginIp;
	private String loginTime;
	private String lastLoginIp;
	private String lastLoginTime;
	private String staffId;
	private String staffName;
	private String skin;
	private boolean isAuth = false;

	public static final int EXPIRE_DAYS_NEVER_EXPIRE = -1;

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public Locale getLocale() {
		return locale;
	}

	public void setLocale(Locale locale) {
		this.locale = locale;
	}

	public Map getBizData() {
		return bizMap;
	}

	public Map getBizMap() {
		return bizMap;
	}

	public void setBizMap(Map bizMap) {
		this.bizMap = bizMap;
	}

	public String getUserauthky() {
		return userauthky;
	}

	public void setUserauthky(String userauthky) {
		this.userauthky = userauthky;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUnitId() {
		return unitId;
	}

	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getOwnerUnitId() {
		return ownerUnitId;
	}

	public void setOwnerUnitId(String ownerUnitId) {
		this.ownerUnitId = ownerUnitId;
	}

	public String getOwnerUnitName() {
		return ownerUnitName;
	}

	public void setOwnerUnitName(String ownerUnitName) {
		this.ownerUnitName = ownerUnitName;
	}

	public String getHrId() {
		return hrId;
	}

	public void setHrId(String hrId) {
		this.hrId = hrId;
	}

	public String getPortalId() {
		return portalId;
	}

	public void setPortalId(String portalId) {
		this.portalId = portalId;
	}

	public String getNotesId() {
		return notesId;
	}

	public void setNotesId(String notesId) {
		this.notesId = notesId;
	}

	public String getIssyn() {
		return issyn;
	}

	public void setIssyn(String issyn) {
		this.issyn = issyn;
	}

	public Integer getFailedLoginCount() {
		return failedLoginCount;
	}

	public void setFailedLoginCount(Integer failedLoginCount) {
		this.failedLoginCount = failedLoginCount;
	}

	public Integer getMaxFailedLoginCount() {
		return maxFailedLoginCount;
	}

	public void setMaxFailedLoginCount(Integer maxFailedLoginCount) {
		this.maxFailedLoginCount = maxFailedLoginCount;
	}

	public String getPasswdExpireTime() {
		return passwdExpireTime;
	}

	public void setPasswdExpireTime(String passwdExpireTime) {
		this.passwdExpireTime = passwdExpireTime;
	}

	public Integer getPasswdExpireDays() {
		return passwdExpireDays;
	}

	public void setPasswdExpireDays(Integer passwdExpireDays) {
		this.passwdExpireDays = passwdExpireDays;
	}

	public String getAccountExpireTime() {
		return accountExpireTime;
	}

	public void setAccountExpireTime(String accountExpireTime) {
		this.accountExpireTime = accountExpireTime;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public String getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getStaffId() {
		return staffId;
	}

	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}

	public String getStaffName() {
		return staffName;
	}

	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}

	public String getPositionId() {
		return positionId;
	}

	public void setPositionId(String positionId) {
		this.positionId = positionId;
	}

	public String getPositionName() {
		return positionName;
	}

	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}

	public String getSkin() {
		return skin;
	}

	public void setSkin(String skin) {
		this.skin = skin;
	}

	public List getPositionList() {
		return positionList;
	}

	public void setPositionList(List positionList) {
		this.positionList = positionList;
	}

	public boolean isAuth() {
		return isAuth;
	}

	public void setAuth(boolean isAuth) {
		this.isAuth = isAuth;
	}

	public List getRoleList() {
		return roleList;
	}

	public void setRoleList(List roleList) {
		this.roleList = roleList;
	}
	
	public List getAuthOrgList() {
		return authOrgList;
	}

	public void setAuthOrgList(List authOrgList) {
		this.authOrgList = authOrgList;
	}
}